package com.dly.blog.properties;

import com.dly.blog.content.StringContent;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;
import java.util.Set;

/**
 * @Author: DaiLiYu
 * @Date: 2023/7/14 13:32
 */
@Data
@NoArgsConstructor
@ConfigurationProperties(prefix = BlogSecurityProperties.PREFIX)
public class BlogSecurityProperties {

    public static final String PREFIX =  StringContent.PROJECT + ".security";

    private List<String> staticResources;

    private JWT jwt;

    @Data
    public static class JWT{

        private String secretKey;

        private Long expiration;

        private RefreshToken refreshToken;

    }

    @Data
    public static class RefreshToken{

        private String expiration;
    }
}
